FROM logstash:6.8.23

RUN /usr/share/logstash/bin/logstash-plugin uninstall logstash-input-jdbc

RUN /usr/share/logstash/bin/logstash-plugin list --verbose

COPY ./logstash/plugins/logstash-input-jdbc-4.3.19.zip /usr/share/logstash/plugins/logstash-input-jdbc-4.3.19.zip

RUN /usr/share/logstash/bin/logstash-plugin install file:///usr/share/logstash/plugins/logstash-input-jdbc-4.3.19.zip